/****************************************************************************************************
		
		Replication code for:

		"Civilian Casualties, Humanitarian Aid, and Insurgent Violence in Civil War"
		Jason Lyall
		International Organization
		Last updated: 30 January 2019
		
****************************************************************************************************/

		*Table of Contents
		
		*Main analysis: "CIVCAS.dta"
		*Summary statistics: ACAPtimetrend.csv
		*Figure Folder (.png)
	
**************************************************************************************************** 


/*To run the do-file you need to install the following:

*1. To generate substantive effects (or consult http://gking.harvard.edu for alternative ways of installing Clarify)
net from http://gking.harvard.edu/clarify/
net install clarify

****************************************************************************************************/


clear
use "CIVCAS.dta"
cd “/Users/acap2/replication”


**************************************************************************************************** 

*Table S1. Approved and Abandoned Incidents, By Event Type* 

* ISAF-Initiated Events * 

count if accident==1 & eligible==1
count if accident==1 & eligible==0
count if airstrike==1 & eligible==1
count if airstrike==1 & eligible==0
count if cfindirect==1 & eligible==1
count if cfindirect==1 & eligible==0
count if cfmilop==1 & eligible==1
count if cfmilop==1 & eligible==0
count if eof==1 & eligible==1
count if eof==1 & eligible==0

* Taliban-Initiated Events * 

count if ied==1 & eligible==1
count if ied==1 & eligible==0
count if indirect==1 & eligible==1
count if indirect==1 & eligible==0
count if milop==1 & eligible==1
count if milop==1 & eligible==0
count if sb==1 & eligible==1
count if sb==1 & eligible==0

* Unclear Responsibility * 

count if crossfire==1 & eligible==1
count if crossfire==1 & eligible==0



***********************************************************************************************************


*Table S2: As-if randomization balance test: Incident-level determinants of aid approval*

reg eligible isafresp  casualties totalharm property
reg eligible cfmilop airstrike  eof indirect sb ied milop crossfire accident casualties totalharm property


***********************************************************************************************************


*Table S3: As-if randomization balance test: Spatial determinants of aid approval*

reg eligible north east south west kabul pakistan helmand kandahar khost kunar logar

***********************************************************************************************************

*Table S4: As-if randomization balance test: Village-level determinants of aid approval*

reg eligible logpop logelev langcode pashto logneighbors  logcdcpercapita fightingseason logdisttobase logdcdistkm km3bases km5bases km10bases kabul pre7aid preied7aid preisaf7aid pre7bid preied7bid pre7cid preied7cid pre180aid preied180aid preisaf180aid pre180bid preied180bid pre180cid preied180cid pre365aid preied365aid preisaf365aid pre365bid preied365bid pre365cid preied365cid   cdcprojects cdcfamilies latitude longitude logroadkm pre90aid preied90aid preisaf90aid pre90bid preied90bid pre90cid preied90cid


***********************************************************************************************************


*Table S5: ACAP II and Insurgent Violence Against ISAF (Full Sample)  Figure 2, Panel A*

reg diff7a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diff90a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm  pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diff180a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diff365a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diff730a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if rightcensor730sigact!=1, cluster(pplid) 


***********************************************************************************************************



*Table S6: ACAP II and Insurgent Attacks v. ISAF (Rural Sample)  Figure 2, Panel B* 

reg diff7a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if population<50000, cluster(pplid) 
reg diff90a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm  pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit  if population<50000, cluster(pplid) 
reg diff180a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if population<50000, cluster(pplid) 
reg diff365a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit  if population<50000, cluster(pplid) 
reg diff730a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if rightcensor730sigact!=1 & population<50000, cluster(pplid) 


***********************************************************************************************************



*Table S7: ACAP II and Insurgent Attacks v. ISAF: Sensitivity Analysis for Different Rural Thresholds (10k, 5k, 1k)*

reg diff7a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if population<10000, cluster(pplid) 
reg diff90a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm  pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit  if population<10000, cluster(pplid) 
reg diff180a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if population<10000, cluster(pplid) 
reg diff365a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit  if population<10000, cluster(pplid) 
reg diff730a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if rightcensor730sigact!=1 & population<10000, cluster(pplid) 

reg diff7a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if population<5000, cluster(pplid) 
reg diff90a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm  pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit  if population<5000, cluster(pplid) 
reg diff180a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if population<5000, cluster(pplid) 
reg diff365a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit  if population<5000, cluster(pplid) 
reg diff730a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if rightcensor730sigact!=1 & population<5000, cluster(pplid) 


reg diff7a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if population<1000, cluster(pplid) 
reg diff90a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm  pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit  if population<1000, cluster(pplid) 
reg diff180a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if population<1000, cluster(pplid) 
reg diff365a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit  if population<1000, cluster(pplid) 
reg diff730a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if rightcensor730sigact!=1 & population<1000, cluster(pplid) 

***********************************************************************************************************

*Table S8: ACAP II and Insurgent Attacks v. ISAF, No Covariates or FE (Full Sample)*

reg diff7a eligible, cluster(pplid)
reg diff90a eligible, cluster(pplid)
reg diff180a eligible, cluster(pplid)
reg diff365a eligible, cluster(pplid)
reg diff730a eligible if rightcensor730sigact!=1, cluster(pplid)

***********************************************************************************************************


*Table S9: ACAP II and Insurgent Violence Against ISAF, One-Time ACAP II Recipients Only*

reg diff7a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if timesaid<=1, cluster(pplid) 
reg diff90a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm  pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if  timesaid<=1, cluster(pplid) 
reg diff180a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if  timesaid<=1, cluster(pplid) 
reg diff365a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if timesaid<=1, cluster(pplid) 
reg diff730a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if rightcensor730sigact!=1 & timesaid<=1, cluster(pplid) 


***********************************************************************************************************


*Table S10: ACAP II Beneficiaries (Logged) and Insurgent Violence Against ISAF (Full Sample)* 


reg diff7a logaidamount logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if eligible==1, cluster(pplid) 
reg diff90a logaidamount logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if eligible==1, cluster(pplid) 
reg diff180a logaidamount logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if eligible==1, cluster(pplid) 
reg diff365a logaidamount logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if eligible==1, cluster(pplid) 
reg diff730a logaidamount logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if rightcensor730sigact!=1 & eligible==1, cluster(pplid) 



***********************************************************************************************************

*Table S11: Placebo Test: ACAP II and Insurgent Violence v. ISAF*

*Placebo for SIGACT attacks, 2008-10, using up to one year time lag. Note that the iMMAP data is also a placebo and is also lagged up to one year 

reg diff7aplacebo eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm isafinit pre7aplacebo preied7aplacebo preisaf7aplacebo pre7bplacebo preied7bplacebo pre7cplacebo preied7cplacebo pqtr42008 pqtr12009 pqtr22009 pqtr32009 pqtr42009 pqtr12010 pqtr22010, cluster(pplid) 
reg diff90aplacebo eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm isafinit pre90aplacebo preied90aplacebo preisaf90aplacebo pre90bplacebo preied90bplacebo pre90cplacebo preied90cplacebo pqtr42008 pqtr12009 pqtr22009 pqtr32009 pqtr42009 pqtr12010 pqtr22010, cluster(pplid)
reg diff180aplacebo eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm isafinit pre180aplacebo preied180aplacebo preisaf180aplacebo pre180bplacebo preied180bplacebo pre180cplacebo preied180cplacebo pqtr42008 pqtr12009 pqtr22009 pqtr32009 pqtr42009 pqtr12010 pqtr22010, cluster(pplid) 
reg diff365aplacebo eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm isafinit pre365aplacebo preied365aplacebo preisaf365aplacebo pre365bplacebo preied365bplacebo pre365cplacebo preied365cplacebo pqtr42008 pqtr12009 pqtr22009 pqtr32009 pqtr42009 pqtr12010 pqtr22010, cluster(pplid) 



***********************************************************************************************************



*Table S12: ACAP II and Insurgent Violence Against ANDSF (Full Sample) Figure 4, Panel A* 

reg diff7b eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diff90b eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diff180b eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diff365b eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if rightcensor365immap!=1 , cluster(pplid) 


*Table S12: ACAP II and Insurgent Violence Against ANDSF (Rural Sample) Figure 4, Panel B* 

reg diff7b eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if population<50000, cluster(pplid)
reg diff90b eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if population<50000, cluster(pplid)
reg diff180b eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if population<50000, cluster(pplid)
reg diff365b eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 isafinit if rightcensor365immap!=1 & population<50000, cluster(pplid) 



***********************************************************************************************************



*Table S13: ACAP II and Insurgent Violence Against Civilians (Full Sample) Figure 4, Panel C* 

reg diff7c eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diff90c eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diff180c eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diff365c eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if rightcensor365immap!=1 , cluster(pplid) 


*Table S13: ACAP II and Insurgent Violence Against Civilians (Full Sample) Figure 4, Panel D* 

reg diff7c eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if population<50000, cluster(pplid)
reg diff90c eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if population<50000, cluster(pplid) 
reg diff180c eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if population<50000, cluster(pplid) 
reg diff365c eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 isafinit if rightcensor365immap!=1 & population<50000, cluster(pplid)


***********************************************************************************************************


*Table S14: ACAP II Effects in Incidents With Civilian Fatalities (Full Sample)*

reg diff7a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit wounded property if killeddum==1, cluster(pplid) 
reg diff90a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases    pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit wounded property if killeddum==1, cluster(pplid) 
reg diff180a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit wounded property  if killeddum==1, cluster(pplid) 
reg diff365a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit wounded property if killeddum==1, cluster(pplid) 
reg diff730a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit wounded property if rightcensor730sigact!=1 &   killeddum==1, cluster(pplid) 


***********************************************************************************************************


*Table S15: ACAP II Effects in Incidents With Civilian Fatalities (Rural Only)*


reg diff7a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit wounded property if killeddum==1 & population<50000, cluster(pplid) 
reg diff90a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases    pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit wounded property if killeddum==1 & population<50000, cluster(pplid) 
reg diff180a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit wounded property  if killeddum==1 & population<50000, cluster(pplid) 
reg diff365a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit wounded property if killeddum==1 & population<50000, cluster(pplid) 
reg diff730a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit wounded property if rightcensor730sigact!=1 &   killeddum==1 & population<50000, cluster(pplid) 


***********************************************************************************************************

*Table S16: ACAP II Effects in ISAF-Initiated Incidents With Civilian Fatalities Figure 5* 

reg diff7a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property if killeddum==1 & isafresp==1, cluster(pplid) 
reg diff90a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases    pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property if killeddum==1 & isafresp==1, cluster(pplid) 
reg diff180a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property if killeddum==1 & isafresp==1, cluster(pplid) 
reg diff365a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property  if killeddum==1 & isafresp==1, cluster(pplid) 
reg diff730a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property if rightcensor730sigact!=1 &   killeddum==1 & isafresp==1, cluster(pplid) 


***********************************************************************************************************


*Table S17: ACAP II Effects in Taliban-Initiated Incidents With Civilian Fatalities Figure 5* 

reg diff7a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property if killeddum==1 & talibresp==1, cluster(pplid) 
reg diff90a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases    pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property if killeddum==1 & talibresp==1, cluster(pplid) 
reg diff180a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property if killeddum==1 & talibresp==1, cluster(pplid) 
reg diff365a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property  if killeddum==1 & talibresp==1, cluster(pplid) 
reg diff730a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property if rightcensor730sigact!=1 & killeddum==1 & talibresp==1, cluster(pplid) 

***********************************************************************************************************

*Table S18: ACAP II Effects in ISAF-Initiated Incidents Without Civilian Fatalities*

reg diff7a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property if killeddum==0 & isafresp==1, cluster(pplid) 
reg diff90a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases    pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property if killeddum==0 & isafresp==1, cluster(pplid) 
reg diff180a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property if killeddum==0 & isafresp==1, cluster(pplid) 
reg diff365a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property  if killeddum==0 & isafresp==1, cluster(pplid) 
reg diff730a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property if rightcensor730sigact!=0 &   killeddum==1 & isafresp==1, cluster(pplid) 


***********************************************************************************************************

*Table S19: ACAP II Effects in Taliban-Initiated Incidents Without Civilian Fatalities*

reg diff7a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property if killeddum==0 & talibresp==1, cluster(pplid) 
reg diff90a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases    pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property if killeddum==0 & talibresp==1, cluster(pplid) 
reg diff180a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property if killeddum==0 & talibresp==1, cluster(pplid) 
reg diff365a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property  if killeddum==0 & talibresp==1, cluster(pplid) 
reg diff730a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 wounded property if rightcensor730sigact!=1 & killeddum==0 & talibresp==1, cluster(pplid) 


***********************************************************************************************************


*Table S20: ACAP II and Insurgent Improvised Explosive Device (IED) Attacks v. ISAF*

reg diffied7a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diffied90a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm  pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diffied180a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diffied365a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diffied730a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases totalharm pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if rightcensor730sigact!=1, cluster(pplid) 


***********************************************************************************************************


*Table S21: Continuous Treatment: Aid Dispersed ($) and Insurgent Attacks v. ISAF (Full Sample)*

reg diff7a logaidamount logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diff90a logaidamount logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diff180a logaidamount logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diff365a logaidamount logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
reg diff730a logaidamount logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if rightcensor730sigact!=1, cluster(pplid) 


***********************************************************************************************************



*Table S22: Amount of Aid Dispersed ($) and Insurgent Attacks v. ISAF (ACAP II Approved Villages Only)*

reg diff7a logvalueia logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if eligible==1, cluster(pplid) 
reg diff90a logvalueia logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if eligible==1, cluster(pplid) 
reg diff180a logvalueia logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if eligible==1, cluster(pplid) 
reg diff365a logvalueia logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if eligible==1, cluster(pplid) 
reg diff730a logvalueia logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if rightcensor730sigact!=1 & eligible==1, cluster(pplid) 



***********************************************************************************************************


*Table S23: Aid Per Beneficiary ($) and Insurgent Attacks v. ISAF (ACAP II Approved Villages Only)*


reg diff7a logaidamount logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if eligible==1, cluster(pplid) 
reg diff90a logaidamount logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if eligible==1, cluster(pplid) 
reg diff180a logaidamount logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if eligible==1, cluster(pplid) 
reg diff365a logaidamount logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases   pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if eligible==1, cluster(pplid) 
reg diff730a logaidamount logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if rightcensor730sigact!=1 & eligible==1, cluster(pplid) 


***********************************************************************************************************


*Analyses for Remaining Figures* 


***********************************************************************************************************


*Figure 1: Distribution of ACAP II Incidents Over Time, 2011-13.*

* All Figures generated in R using ggplot. Use the separate R script to reproduce the Figure* 




***********************************************************************************************************


*Figure 3: Differences in Post-Incident Attacks v. ISAF, by Aid Status

* Full sample * 

ttest diff7a, by(eligible)
ttest diff90a, by(eligible)
ttest diff180a, by(eligible)
ttest diff365a, by(eligible)
ttest diff730a if rightcensor730sigact!=1, by(eligible)

* Rural only * 

ttest diff7a if population<50000, by(eligible)
ttest diff90a if population<50000, by(eligible)
ttest diff180a if population<50000, by(eligible)
ttest diff365a if population<50000, by(eligible)
ttest diff730a if rightcensor730sigact!=1 & population<50000, by(eligible)


***********************************************************************************************************



*Figure 6: ACAP II Effects by Distance from Nearest Military Base*

reg diff7a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm totalharm pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if basedistkm<4000, cluster(pplid) 
reg diff7a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm totalharm pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if basedistkm>4000, cluster(pplid) 
reg diff90a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm totalharm pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if basedistkm<4000, cluster(pplid) 
reg diff90a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm totalharm pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if basedistkm>4000, cluster(pplid) 
reg diff180a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm totalharm pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if basedistkm<4000, cluster(pplid) 
reg diff180a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm totalharm pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if basedistkm>4000, cluster(pplid) 
reg diff365a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm totalharm pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if basedistkm<4000, cluster(pplid) 
reg diff365a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm totalharm pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if basedistkm>4000, cluster(pplid) 
reg diff730a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm totalharm pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if rightcensor730sigact!=1 & basedistkm<4000, cluster(pplid) 
reg diff730a eligible logpop logelev pashto logneighbors logcdcpercapita logdcdistkm totalharm pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if rightcensor730sigact!=1 & basedistkm>4000, cluster(pplid) 



***********************************************************************************************************




*Figure S8: First Differences: Shifts from 5 to 64 Beneficiaries (10th to 90th percentile)*

estsimp reg diff7a logbeneficiaries logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases pre7a preied7a preisaf7a pre7b preied7b pre7c preied7c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
setx logbeneficiaries (mean) logpop (mean)  logelev (mean) pashto (median) logneighbors (mean) logcdcpercapita (mean) logdcdistkm (mean) logdisttobase (mean) km10bases (mean) pre7a (mean) preied7a (mean) preisaf7a (mean) pre7b (mean) preied7b (mean) pre7c (mean) preied7c (mean) qtr42011 (median) qtr12012 (median) qtr22012 (median) qtr32012 (median) qtr42012 (median)  qtr12013 (median) qtr22013 (median) isafinit (median) 
simqi, fd(ev) changex(logbeneficiaries p10 p90)
drop b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15 b16 b17 b18 b19 b20 b21 b22 b23 b24 b25 b26
estsimp reg diff90a logbeneficiaries logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases pre90a preied90a preisaf90a pre90b preied90b pre90c preied90c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
setx logbeneficiaries (mean) logpop (mean)  logelev (mean) pashto (median) logneighbors (mean) logcdcpercapita (mean) logdcdistkm (mean) logdisttobase (mean) km10bases (mean) pre90a (mean) preied90a (mean) preisaf90a (mean) pre90b (mean) preied90b (mean) pre90c (mean) preied90c (mean) qtr42011 (median) qtr12012 (median) qtr22012 (median) qtr32012 (median) qtr42012 (median)  qtr12013 (median) qtr22013 (median) isafinit (median) 
simqi, fd(ev) changex(logbeneficiaries p10 p90)
drop b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15 b16 b17 b18 b19 b20 b21 b22 b23 b24 b25 b26
estsimp reg diff180a logbeneficiaries logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases pre180a preied180a preisaf180a pre180b preied180b pre180c preied180c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
setx logbeneficiaries (mean) logpop (mean)  logelev (mean) pashto (median) logneighbors (mean) logcdcpercapita (mean) logdcdistkm (mean) logdisttobase (mean) km10bases (mean) pre180a (mean) preied180a (mean) preisaf180a (mean) pre180b (mean) preied180b (mean) pre180c (mean) preied180c (mean) qtr42011 (median) qtr12012 (median) qtr22012 (median) qtr32012 (median) qtr42012 (median)  qtr12013 (median) qtr22013 (median) isafinit (median) 
simqi, fd(ev) changex(logbeneficiaries p10 p90)
drop b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15 b16 b17 b18 b19 b20 b21 b22 b23 b24 b25 b26
estsimp reg diff365a logbeneficiaries logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases pre365a preied365a preisaf365a pre365b preied365b pre365c preied365c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit, cluster(pplid) 
setx logbeneficiaries (mean) logpop (mean)  logelev (mean) pashto (median) logneighbors (mean) logcdcpercapita (mean) logdcdistkm (mean) logdisttobase (mean) km10bases (mean) pre365a (mean) preied365a (mean) preisaf365a (mean) pre365b (mean) preied365b (mean) pre365c (mean) preied365c (mean) qtr42011 (median) qtr12012 (median) qtr22012 (median) qtr32012 (median) qtr42012 (median)  qtr12013 (median) qtr22013 (median) isafinit (median) 
simqi, fd(ev) changex(logbeneficiaries p10 p90)
drop b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15 b16 b17 b18 b19 b20 b21 b22 b23 b24 b25 b26
estsimp reg diff730a logbeneficiaries logpop logelev pashto logneighbors logcdcpercapita logdcdistkm logdisttobase km10bases  pre730a preied730a preisaf730a pre730b preied730b pre730c preied730c qtr42011 qtr12012 qtr22012 qtr32012 qtr42012 qtr12013 qtr22013 isafinit if rightcensor730sigact!=1, cluster(pplid) 
setx logbeneficiaries (mean) logpop (mean)  logelev (mean) pashto (median) logneighbors (mean) logcdcpercapita (mean) logdcdistkm (mean) logdisttobase (mean) km10bases (mean) pre730a (mean) preied730a (mean) preisaf730a (mean) pre730b (mean) preied730b (mean) pre730c (mean) preied730c (mean) qtr42011 (median) qtr12012 (median) qtr22012 (median) qtr32012 (median) qtr42012 (median)  qtr12013 (median) qtr22013 (median) isafinit (median) 
simqi, fd(ev) changex(logbeneficiaries p10 p90)


***********************************************************************************************************


















